import React, { Component } from 'react';
import {
    Text,
    View,
    TouchableHighlight
    } from 'react-native'
import {Actions} from 'react-native-router-flux'

export default class Home extends Component {

  componentWillReceiveProps(next) {
  }

    render() {
      console.log('home render')
      return (
        <View>
          <TouchableHighlight onPress={() => {
            Actions.reset('Root')
          }}>
            <Text style={{backgroundColor:'blue',fontSize:30,padding:10}}>tap me</Text>
          </TouchableHighlight>
          <Text>this is home page</Text>
        </View>
      )
    };
}